<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="box">
    <div class="box-body">
        <table id="mainDataTables" class="table table-bordered table-striped" cellspacing="0" width="100%">
            <thead>
            <tr>
                <th>序号</th>
                <th>标牌图片</th>
                <th>维护单位</th>
                <th>报告人</th>
                <th>报告时间</th>
                <th>企业审核人</th>
                <th>单位审核人</th>
                <th>标牌详情</th>
                <th>故障详情</th>
                <th>故障状态</th>
                <th>操作</th>
            </tr>
            </thead>
        </table>
    </div>
</div>
<!--故障详情-->
<div id="modal-signFault" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="label-signFault"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 400px;">
        <div class="modal-content">
            <form id="form-signFault" name="form-signFault" class="form-horizontal" role="form" method="post">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"
                            onclick="$.clearModal($('#form-signFault'), $('#modal-signFault'))">
                        <span aria-hidden="true">&times;</span></button>
                    <b class="modal-title" id="label-signFault"></b>
                </div>
                <div class="modal-body" style="max-height:500px; overflow-y:auto;overflow-x: hidden">
                    <div class="form-group">
                        <div class="col-sm-12">
                            <img id="signFaultPic" name="signFaultPic" src="../images/default_male.png" width="100%">
                        </div>
                    </div>
                    <div class="col-sm-12" style="width: 400px">
                        <label>故障类型：</label>
                        <div class="form-group col-sm-12">
                            <p class='form-control' name="signFaultType" id="signFaultType"></p>
                        </div>
                    </div>
                    <div class="col-sm-12" style="width: 400px">
                        <label>故障原因：</label>
                        <div class="form-group col-sm-12">
                            <textarea class="form-control" name="signFaultReason" readonly
                                      id="signFaultReason" style="height: 100px; resize: none;">
                            </textarea>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary btn-flat" data-dismiss="modal"
                            onclick="$.clearModal($('#form-signFault'), $('#modal-signFault'))"><i
                            class="fa  fa-check"></i> 确定
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
<!--审核页面-->
<div class="modal fade bs-example-modal-sm" id="auditModal" tabindex="-1" role="dialog"
     aria-labelledby="auditModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 700px;">
        <div class="modal-content">
            <div class="modal-header">
                <label class="modal-title" id="auditModalLabel"></label>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"
                        onclick="$.closeShowModal()">
                    <span aria-hidden="true">&times;</span></button>
                <!--<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>-->
                </button>
            </div>
            <div class="modal-body" id="md-body" style="max-height: 500px; overflow-y: auto">

                <table class="table table-bordered table-striped">
                    <tr>
                        <td class="col-sm-3">故障编号</td>
                        <td class="col-sm-3"><span id="signFaultId4Audit"></span></td>
                        <td class="col-sm-3">故障等级</td>
                        <td class="col-sm-3"><span id="signFaultLevel4Audit"></span></td>
                    </tr>
                    <tr>
                        <td class="col-sm-3">故障类型</td>
                        <td class="col-sm-3"><span id="signFaultType4Audit"></span></td>
                        <td class="col-sm-3">审核人</td>
                        <td class="col-sm-3"><span id="checkPerson4Audit"></span></td>
                    </tr>
                    <tr>
                        <td class="col-sm-3">报告人</td>
                        <td class="col-sm-3"><span id="signFaultPeopleName4Audit"></span></td>
                        <td class="col-sm-3">报告时间</td>
                        <td class="col-sm-3"><span id="signFaultTime4Audit"></span></td>
                    </tr>
                    <tr>
                        <td colspan="1">审核反馈</td>
                        <td colspan="3">
                            <input type="text" class="form-control" id="signFaultCheckBack4Audit">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">故障原因</td>
                        <td colspan="2">故障图片</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div style="height:130px;" id="signFaultReason4Audit"></div>
                        </td>
                        <td colspan="2">
                            <img id="signFaultPic4Audit" src="" style="width:83%;"
                                 onclick="$.showMePhoto()">
                            <br/>
                            <span style="font-size: 5px;color: gray;">点击图片放大</span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">标牌位置</td>
                    </tr>
                    <tr>
                        <td colspan="4" rowspan="3">
                            <iframe src="fault/map.html" id="showEventContent4Audit"
                                    style="width: 100%;height: 279px;"
                                    frameBorder=0
                                    scrolling=no></iframe>
                        </td>
                    </tr>
                </table>
                <input type="hidden" id="roadSignId" name="roadSignId">
            </div>
            <input type="hidden" id="signFaultId" name="signFaultId">
            <div class="modal-footer">
                <button id="addPerson" class="btn btn-success " style="float:left;margin: 10Px;"
                        onclick="$.showAddMoal()">
                    <span class="glyphicon glyphicon-user"></span> 添加维护人员
                </button>
                <p id="addPersonName"></p>
                <button type="submit" id="ac-button" class="btn btn-success">
                    <span class="glyphicon glyphicon-ok" aria-hidden="true"></span> 通过
                </button>
                <button id="notac-button" class="btn btn-danger">
                    <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> 不通过
                </button>
                <button type="button" class="btn btn-primary" data-dismiss="modal"
                        onclick="$.closeShowModal()"><i
                        class="fa fa-trash-o"></i> 取消
                </button>
            </div>
        </div>
    </div>
</div>
<!-- 图片预览modal -->
<div class="modal fade bs-example-modal-sm" id="preModal" tabindex="-1" role="dialog" aria-labelledby="preModal"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 700px;">
        <div class="modal-content">
            <div class="modal-header">
                <label class="modal-title" id="preModalLabel" style="font-size: 16px;">故障图片 </label>
                <button type="button" title='关闭' class="btn btn-danger btn-xs" onclick="$.closePhoto()" id="adjustBu"
                        style="float: right; margin-top: -5px;">
                    <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
                </button>
            </div>
            <div class="modal-body" align="center" id="selectModal_body">
                <img id="preViewImg" src="" style="width: 450px;">
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div>

<!--show 标牌详细 modal-->
<div id="roadSignInfoModal" class="modal fade" tabindex="-1" role="dialog"
     aria-labelledby="roadSignInfoModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <form id="roadSignInfoModalForm" name="roadSignInfoModalForm"
                  class="form-horizontal" role="form" method="post">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"
                            onclick="$('#roadSignInfoModal').modal('hide')">
                        <span aria-hidden="true">&times;</span></button>
                    <b class="modal-title" id="roadSignInfoModalLabel"></b>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label for="signArea" class="col-sm-3 control-label">地址</label>
                                <div class="col-sm-3" style="padding-right: 0">
                                    <input type="text" class="form-control" id="signProvince" name="signProvince"
                                           placeholder="省" style="padding-right: 10px" readonly>
                                </div>
                                <div class="col-sm-3" style="padding-left: 7px; padding-right: 7px">
                                    <input type="text" class="form-control" id="signCity" name="signCity"
                                           placeholder="市" style="padding-right: 10px" readonly>
                                </div>
                                <div class="col-sm-3" style="padding-left: 0">
                                    <input type="text" class="form-control" id="signArea" name="signArea"
                                           placeholder="区/县" style="padding-right: 10px" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">坐标</label>
                                <div class="col-sm-8" style="padding-right: 0">
                                    <input type="text" class="form-control" id="coordinate"
                                           placeholder="坐标" style="padding-right: 10px" readonly>
                                </div>

                                <div class="col-sm-1">
                                    <button type="button" style="height: 34px;float: right;" id="myBtnUpdate"
                                            onclick="$.myBtnMap()"><i
                                            class="fa fa-map-marker"></i></button>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="signMainOrgName" class="col-sm-3 control-label">监管单位</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="signMainOrgName" name="signMainOrgName"
                                           placeholder="监管单位" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="signOrgName" class="col-sm-3 control-label">养护公司</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="signOrgName" name="signOrgName"
                                           placeholder="养护公司" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="signCreateUserName" class="col-sm-3 control-label">采集人</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="signCreateUserName"
                                           name="signCreateUserName"
                                           placeholder="采集人" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="signStartRoad" class="col-sm-3 control-label">起始路口</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="signStartRoad" name="signStartRoad"
                                           placeholder="起始路口" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="signEndRoad" class="col-sm-3 control-label">结束路口</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="signEndRoad" name="signEndRoad"
                                           placeholder="结束路口" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="signRoadName" class="col-sm-3 control-label">路名</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="signRoadName" name="signRoadName"
                                           placeholder="路名" readonly>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">标牌照片</label>
                                <div class="col-sm-9">
                                    <img id="signRoadSignPic" src="" onclick=""
                                         style="height: 185px; width: 260px;cursor: pointer">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="signRoadSignInstallType" class="col-sm-3 control-label">安装方式</label>
                                <div class="col-sm-9">
                                    <select class="form-control" id="signRoadSignInstallType"
                                            name="signRoadSignInstallType" disabled>
                                        <option value="0">单标志</option>
                                        <option value="1">合杆</option>
                                        <option value="2">借杆</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="signEnvironment" class="col-sm-3 control-label">使用场景</label>
                                <div class="col-sm-9">
                                    <select class="form-control" id="signEnvironment" name="signEnvironment" disabled>
                                        <option value="0">日常使用</option>
                                        <option value="1">施工配合</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="SignRoadSignType" class="col-sm-3 control-label">标志类型</label>
                                <div class="col-sm-9">
                                    <select class="form-control" id="SignRoadSignType" name="SignRoadSignType" disabled>
                                        <option value="0">警告</option>
                                        <option value="1">禁令</option>
                                        <option value="2">指示</option>
                                        <option value="3">指路</option>
                                        <option value="4">旅游</option>
                                        <option value="5">辅助</option>
                                        <option value="6">作业</option>
                                        <option value="7">告示</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="signRoadSignShape" class="col-sm-3 control-label">标志形状</label>
                                <div class="col-sm-9">
                                    <select class="form-control" id="signRoadSignShape" name="signRoadSignShape"
                                            disabled>
                                        <option value="0">圆形</option>
                                        <option value="1">八角形</option>
                                        <option value="2">正三角</option>
                                        <option value="3">倒三角</option>
                                        <option value="4">矩形</option>
                                        <option value="5">方形</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning pull-left btn-flat" data-dismiss="modal"
                            onclick="$('#roadSignInfoModal').modal('hide')">
                        <i class="fa fa-trash-o"></i> 取消
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
<!--地图-->
<div id="modal-map" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="label-map"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <form id="form-map" name="form-map" class="form-horizontal" role="form" method="post">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"
                            onclick="$.clearModal($('#form-map'), $('#modal-map'))">
                        <span aria-hidden="true">&times;</span></button>
                    <b class="modal-title" id="label-map">地图展示</b>
                </div>
                <div class="modal-body">
                    <iframe src="fault/roadPoleAuditMap.html" id="myMap"
                            style="width: 100%;height: 365px"
                            frameBorder=0
                            scrolling=no></iframe>
                </div>
            </form>
        </div>
    </div>
</div>
<!--故障详情-->
<div class="modal fade bs-example-modal-sm" id="addfaultModal" tabindex="-1" role="dialog"
     aria-labelledby="addfaultModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <div class="modal-header">
                <label class="modal-title" id="addfaultModalLabel"></label>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"
                        onclick="$.closeAddfaultModal()">
                    <span aria-hidden="true">&times;</span></button>
                </button>
            </div>
            <div class="modal-body" id="add-body" style="overflow: auto">
                <table class="table table-bordered table-striped">
                    <tr>
                        <td class="col-sm-3">上报人员</td>
                        <td class="col-sm-3"><span id="addfault_signFaultPeopleName"></span></td>
                        <td class="col-sm-3">上报人员电话</td>
                        <td class="col-sm-3"><span id="addfault_signFaultPeopleMobile"></span></td>
                    </tr>
                    <tr>
                        <td class="col-sm-3">设施位置名称</td>
                        <td class="col-sm-3"><span id="addfault_roadName"></span>
                            <button style="float: right" id="addfault_signBtn" onclick="$.roadPoleDTModal()"><span
                                    class="glyphicon glyphicon-map-marker">
                            </span></button>
                        </td>
                        <td class="col-sm-3">预计维修金额(元)</td>
                        <td class="col-sm-3"><input type="text" id="addfault_repairAmount"
                                                    onkeyup="onlyNumber(this)" placeholder="0.00"/></td>
                    </tr>
                    <tr>
                        <td class="col-sm-3">所属路口路段</td>
                        <td colspan="3"><span id="addfault_address"></span></td>
                    </tr>
                    <tr>
                        <td class="col-sm-3">故障类型</td>
                        <td class="col-sm-3"><select class="form-control" id="addfault_signFaultType"
                                                     name="addfault_signFaultType"></select></td>
                        <td class="col-sm-3">故障等级</td>
                        <td class="col-sm-3">
                            <select class="form-control" id="addfault_signFaultLevel" name="addfault_signFaultLevel">
                                <option value="1">一级</option>
                                <option value="2">二级</option>
                                <option value="3">三级</option>
                                <option value="4">四级</option>
                                <option value="5">五级</option>
                            </select></td>
                    </tr>
                    <tr>
                        <td>故障原因</td>
                        <td colspan="3">
                            <textarea class="form-control" id="addfault_signFaultReason" style="height: 80px"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>故障图片</td>
                        <td colspan="3" rowspan="2">
                            <img id="addfault_signFaultPic" src="../images/default_photo.png"
                                 onclick="$.openUpPic()"
                                 style="width:83%;height: 300px"/>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal"
                        onclick="$.closeAddfaultModal()"><i class="fa fa-trash-o"></i> 取消
                </button>
                <button type="button" id="reportBtn" onclick="$.reportFault()" class="btn btn-primary"><i class="glyphicon glyphicon-upload"></i> 上报
                </button>
            </div>
            <input type="hidden" id="addfault_roadSignId" name="addfault_roadSignId">
            <input type="hidden" id="addfault_orgId" name="addfault_orgId">
            <input type="hidden" id="addfault_mainOrgId" name="addfault_mainOrgId">
        </div>
    </div>
</div>
<!--故障状态-->
<div class="modal fade" tabindex="-1" role="dialog" id="modal-signFaultStatus">
    <div class="modal-dialog" role="document">
        <div class="modal-content" style="width: 610px;overflow-y:hidden;overflow-x: hidden">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">故障进度</h4>
            </div>
            <div class="modal-body" style="overflow-y:hidden;overflow-x: hidden">
                <div class="ystep2" style="width: auto"></div>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</body>
<script src="fault/currentFault.js"></script>
</html>